import http from '../utils/http'

const api = {
  word: {
    get: data => {
      return http.get('/word/list', data)
    },
    create: data => {
      return http.post('/word', data)
    },
    delete: data => {
      return http.delete('/word', data)
    },
    update: data => {
      return http.put('/word', data)
    }
  }
}
export default api